/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package treningImageTools;

import java.io.File;
import javax.swing.JOptionPane;
import net.sourceforge.javaocr.ocrPlugins.CharacterExtractor;

/**
 *
 * @author Mariusz
 */
public class characterExtractorThread implements Runnable{
    private File imageFile;
    private File outDir;

    public characterExtractorThread(File img, File out) {
        this.imageFile = img;
        this.outDir = out;
    }
    
    @Override
    public void run() {
        CharacterExtractor slicer = new CharacterExtractor();
        slicer.slice(imageFile, outDir, 75, 75);
        
        JOptionPane.showMessageDialog(null, "Sprawdź folder.", "Sukces!", JOptionPane.INFORMATION_MESSAGE);
    }
    
}
